package com.xoms.admin.controller.springmvc.req;


import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 新建、编辑商品状态
 **/
public class EditProStatusParam {
	private String sid; // 售卖状态id
	@NotEmpty(message = "商品id不能为空")
	private String productId; // 商品id
	@NotEmpty(message = "状态不能为空")
	@Pattern(regexp = "^0|1$", message = "售卖状态：1在售0下架")
	private String status; // 售卖状态：1在售0下架
	private String startTime; // 生效时间，时间格式yyyy-MM-dd HH:mm:ss
	private String endTime; // 生效时间，时间格式yyyy-MM-dd HH:mm:ss
	private String remark; //  商品状态描述

	public void setSid(String sid) {
 		this.sid = sid;
	}

	public String getSid() {
 		return sid;
	}

	public void setProductId(String productId) {
 		this.productId = productId;
	}

	public String getProductId() {
 		return productId;
	}

	public void setStatus(String status) {
 		this.status = status;
	}

	public String getStatus() {
 		return status;
	}

	public void setStartTime(String startTime) {
 		this.startTime = startTime;
	}

	public String getStartTime() {
 		return startTime;
	}

	public void setEndTime(String endTime) {
 		this.endTime = endTime;
	}

	public String getEndTime() {
 		return endTime;
	}

	public void setRemark(String remark) {
 		this.remark = remark;
	}

	public String getRemark() {
 		return remark;
	}

}
